from django.conf.urls import re_path
from . import views

urlpatterns = [
    # 添加订单 与 返回订单列表
    re_path(r'^api/v1.0/order/$', views.OrderCommitView.as_view()),
    # 接单或拒绝
    re_path(r'^api/v1.0/order/(?P<order_id>\d+)/status/$', views.OrderActive.as_view()),
    # 订单评价
    re_path(r'^api/v1.0/order/(?P<order_id>\d+)/comment/$',views.OrderComment.as_view())
]